home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
libs
/
knowhow4
/
trigon.h
< prev
next >
Wrap
C/C++ Source or Header
|
1994-11-20
|
405b
|
17 lines
#ifndef __TRIGONOMETRY_H_
#define __TRIGONOMETRY_H_
/* This file contains simplified but quick trigonometry.
sin() and cos() returns 1000 * ::sin() or 1000 * ::cos()
*/
struct Trigonometry
{
int* sin_table;
Trigonometry();
~Trigonometry() { delete sin_table; }
int sin(int alpha);
int cos(int alpha) { return sin(90 - alpha); }
};
#endif __TRIGONOMETRY_H_